package Year21_Month11.day1114;

public class Soultion {
    public static int[] printNumbers(int n) {
        int size = 0;
        int i = 0;
        while(i < n){
            size += Math.pow(10,i) * 9;
            i++;
        }
        int[] arr = new int[size];
        for(int j = 0;j < size;j++){
            arr[j] = j + 1;
        }
        return arr;
    }
    public static void print(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
    public static void main(String[] args) {
        int[] arr = printNumbers(1);
        print(arr);
    }
}
